Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new fields to a fieldmap is faster and involves less code duplication. #334

Merged
merged 27 commits into from
Jan 6, 2020

Conversation

jonathanstegall
Copy link
Member

What does this PR do?

When adding new fields to a fieldmap, this changes the JavaScript so it clones a server-side template instead of duplicating the markup in JavaScript. This makes it easier to change the structure of the fieldmap screen.

How do I test this PR?

  • create a new fieldmap without any data and add multiple fields to it
  • refresh the page and add more fields without resetting the selected objects
  • edit an existing fieldmap by adding more fields to it

@jonathanstegall jonathanstegall self-assigned this Jan 5, 2020
@jonathanstegall jonathanstegall added the chore Pull request that does maintenance tasks label Jan 5, 2020
@jonathanstegall jonathanstegall added this to the v1.9.0 milestone Jan 5, 2020
@jonathanstegall jonathanstegall merged commit 28c4e10 into master Jan 6, 2020
@jonathanstegall jonathanstegall deleted the use-clone-for-fieldmap-sets branch January 6, 2020 03:18
@jonathanstegall jonathanstegall changed the title When adding new fields to a fieldmap, we use a server-side template to save code duplication Adding new fields to a fieldmap is faster and involves less code duplication. Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull request that does maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant